package com.zh.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zh.demo.entity.DyInfo;
import com.zh.demo.mapper.DyInfoMapper;
import com.zh.demo.service.IDyInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yufei
 * @since 2019-11-23
 */
@Service
public class DyInfoServiceImpl extends ServiceImpl<DyInfoMapper, DyInfo> implements IDyInfoService {


    @Override
    public void add(String jsonInfo){
        DyInfo dyInfo = new DyInfo();
        dyInfo.setName("fafa");
        dyInfo.setInfo(jsonInfo);
        this.save(dyInfo);
    }

}
